package com.woniu.teachmall04.mapper;

import com.woniu.teachmall04.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface AdminMapper {
    Admin selectByAccount(@Param("account") String account);
    List<Admin> selectAll();
    int insert(Admin admin);
    int update(Admin admin);
    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);
    int deleteById(@Param("id") Integer id);
}